home *** CD-ROM | disk | FTP | other *** search
- on buttonHilite
- global gAbort, gTheclickOn
- puppetSound(0)
- set gAbort to 0
- set gTheclickOn to clickOn()
- set tempName2 to the name of cast the castNum of sprite gTheclickOn
- set tempName to chars(tempName2, 1, length(tempName2) - 5)
- set tempUp to the number of member tempName2
- set tempDown to the number of member (tempName & "_DN")
- set the castNum of sprite gTheclickOn to tempDown
- updateStage()
- sound stop 1
- sound stop 2
- puppetSound("clickSound")
- updateStage()
- repeat while the stillDown
- if rollOver(gTheclickOn) then
- if the castNum of sprite gTheclickOn <> tempDown then
- set the castNum of sprite gTheclickOn to tempDown
- updateStage()
- set gAbort to 0
- end if
- next repeat
- end if
- set the castNum of sprite gTheclickOn to tempUp
- updateStage()
- set gAbort to 1
- go(the frame)
- end repeat
- if not gAbort then
- puppetSound("clickSound")
- updateStage()
- repeat while soundBusy(1)
- nothing()
- end repeat
- updateStage()
- puppetSound(0)
- end if
- set the castNum of sprite gTheclickOn to tempUp
- updateStage()
- end
-